//最小页面宽度
.min-width(@w:1000px){
	min-width: @w;
}
//默认圆角
.border-radius(@r:3px){
	border-radius: @r;
	-webkit-border-radius:@r;
	-moz-border-radius:@r;
	-ms-border-radius:@r;
	-o-border-radius:@r;
}

//默认阴影
.box-no-shadow() {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -ms-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
}

.box-shadow(@x: 0px, @y: 3px, @blur: 5px, @alpha: 0.5) {
    -webkit-box-shadow: @x @y @blur rgba(0, 0, 0, @alpha);
    -moz-box-shadow: @x @y @blur rgba(0, 0, 0, @alpha);
    -ms-box-shadow: @x @y @blur rgba(0, 0, 0, @alpha);
    -o-box-shadow: @x @y @blur rgba(0, 0, 0, @alpha);
    box-shadow: @x @y @blur rgba(0, 0, 0, @alpha);
}

.box-shadowcolor(@x: 0px, @y: 1px, @blur: 5px,@color:@shadowColor, @alpha: 0.5){
	-webkit-box-shadow: @x @y @blur rgba(red(@color), green(@color), blue(@color), @alpha);
    -moz-box-shadow: @x @y @blur rgba(red(@color), green(@color), blue(@color), @alpha);
    -ms-box-shadow: @x @y @blur rgba(red(@color), green(@color), blue(@color), @alpha);
    -o-box-shadow: @x @y @blur rgba(red(@color), green(@color), blue(@color), @alpha);
    box-shadow: @x @y @blur rgba(red(@color), green(@color), blue(@color), @alpha);
}

//默认动画过渡
.transition(@prop: all, @time: 1s, @ease: linear) {
	-webkit-transition: @prop @time @ease;
	-moz-transition: @prop @time @ease;
	-o-transition: @prop @time @ease;
	-ms-transition: @prop @time @ease;
	transition: @prop @time @ease;
}

//小三角up
.triangle-up(@color:#fff,@width:5px){
	width: 0;
    height: 0;
    border-left: @width solid transparent;
    border-right: @width solid transparent;
    border-bottom: @width solid @color;
    border-top:none;
}

//小三角down
.triangle-down(@color:#fff,@width:5px){
	width: 0;
    height: 0;
    border-left: @width solid transparent;
    border-right: @width solid transparent;
    border-top: @width solid @color;
    border-bottom: none;
}

//透明度
.opacity(@value: 0) {
 @ie6_value: (@value * 100);

 -khtml-opacity: @value;
 -moz-opacity: @value;
 opacity: @value;

 filter: ~'alpha(opacity=@{ie6_value})';
}

//线性渐变
.gradient (@origin: top, @start: #ffffff, @stop: #000000) {
    background-color: @start;
    background-image: -webkit-linear-gradient(@origin, @start, @stop);
    background-image: -moz-linear-gradient(@origin, @start, @stop);
    background-image: -o-linear-gradient(@origin, @start, @stop);
    background-image: -ms-linear-gradient(@origin, @start, @stop);
    background-image: linear-gradient(@origin, @start, @stop);
    filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr='@{start}', endColorstr='@{stop}', GradientType='0')";
}
.user-select(@selection:none){
    -webkit-user-select: @selection;
    user-select: @selection;
}
.no-padding {
    padding: 0;
}
.no-margin {
    margin: 0;
}
.no-border {
    border: none;
}
.absolute-fill(@top: 0,@left: 0, @bottom: 0, @right: 0){
    position: absolute;
    left: @left;
    right: @right;
    top: @top;
    bottom: @bottom;
}